<#include "common/head.html">
<div class="right">
    <div class="location">
        <strong>你现在所在的位置是:</strong>
        <span>用户管理页面 >> 用户添加页面</span>
    </div>
    <div class="providerAdd">
        <form  method="post" action="/role/addPerm"
              >
            <div>
                <label for="userCode">选择权限：</label>
                <input type="checkbox" >全选<br>
                <#list permissionList as perm>
                    <h4><input type="checkbox" name="permissionIds" value="${perm.id}" ${(perm.roleId==roleId)?string('checked','')}>${perm.name}</h4>
                    <#list perm.permissions as subperm>
                        <input type="checkbox" name="permissionIds" value="${subperm.id}" ${(subperm.roleId==roleId)?string('checked','')}>${subperm.name}
                    </#list>
                </#list>
            </div>
            <div class="providerAddBtn">
                <input type="hidden" name="roleId" value="${roleId}">
                <input type="submit" name="add" id="add" value="保存" >
                <input type="button" id="back" name="back" value="返回" >
            </div>
        </form>
</div>
</section>
<#include "common/foot.html">
